Implementation of a C + + library for data exchange with matlab R ⃝ Bachelor
نویسندگان
چکیده
matlab ⃝ stores matrices and others data structures into binary files which we call MAT-files. They represent an efficient and powerful way for data exchange between C++ programs and matlab ⃝ or other C++ programs. We propose an easy-to-use C++ library for input and output operations to share data in matrix form. 1 Description of the problem In the field of numerical simulations the need to share data between a C++ algorithm and other programs like matlab R ⃝, Octave or even other C++ programs is a common problem. An efficient way to do this is through MAT-files, the matlab R ⃝ standard for data saving. This standard has many advantages: • It supports dense and sparse matrix storage. • It supports other data structures, such as rectangular tensors, structs, objects and cell arrays. • The data are stored in a binary format, i.e. data precision is preserved. • The standard does not impose a limit on the number of data objects. • The standard allows data compression using zlib. • The standard is portable. Nevertheless, there is a lack of modern, powerful, object oriented, simple to use C++ libraries for input-output operation with this type of files. matlab R ⃝ does provide within External interfaces [2] a C/C++ API for that purpose, but its C based functional programming does not conform to the object-oriented ∗Seminar for Applied Mathematics, Swiss Federal Institute of Technology, Rämistrasse 101, Zurich †Seminar for Applied Mathematics, Swiss Federal Institute of Technology, Rämistrasse 101, Zurich
منابع مشابه
Implementation and application of extended precision in Matlab
A multiple precision library for floating-point calculations to any number of digits has been implemented in Matlab. The library is based on the ARPREC library. One application is discussed in detail, namely the evaluation in the complex plane of special functions in regions of bad conditioning. Through the use of Matlab classes, all the basic arithmetic operations are accessible using Matlab s...
متن کاملDesigning and pilot implementation pelvic floor internship for bachelor of physiotherapy
Background: Treatment of pelvic floor disorders is important due to the increasing number of these diseases and is one of the multidisciplinary therapies that should be performed with respect to the role of each group in the treatment. Physiotherapy not included in bachelor physiotherapy curriculum. Therefore, introducing students to pelvic floor physiotherapy as part of an independent training...
متن کاملfastcluster: Fast Hierarchical, Agglomerative Clustering Routines for R and Python
The fastcluster package is a C++ library for hierarchical, agglomerative clustering. It provides a fast implementation of the most efficient, current algorithms when the input is a dissimilarity index. Moreover, it features memory-saving routines for hierarchical clustering of vector data. It improves both asymptotic time complexity (in most cases) and practical performance (in all cases) compa...
متن کاملParleda: a Library for Parallel Processing in Computational Geometry Applications
ParLeda is a software library that provides the basic primitives needed for parallel implementation of computational geometry applications. It can also be used in implementing a parallel application that uses geometric data structures. The parallel model that we use is based on a new heterogeneous parallel model named HBSP, which is based on BSP and is introduced here. ParLeda uses two main lib...
متن کاملForecasting Of Tehran Stock Exchange Index by Using Data Mining Approach Based on Artificial Intelligence Algorithms
Uncertainty in the capital market means the difference between the expected values and the amounts that actually occur. Designing different analytical and forecasting methods in the capital market is also less likely due to the high amount of this and the need to know future prices with greater certainty or uncertainty. In order to capitalize on the capital market, investors have always sough...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2010